package ss9999999999;

public class eight {
    public static void main(String[] args) {
        for(int i=100000;i<1000000;i++){
            if(i*4==7*100000+i/10){
                System.out.println(i);
            }
        }
    }
}
